package edu.tongji.jiaowu.service.impl;

import java.util.List;
import com.tongji.quickCRUDQ.service.impl.BaseManagerImpl;
import edu.tongji.jiaowu.dao.GradeMajorDao;
import edu.tongji.jiaowu.service.GradeMajorManager;
import com.tongji.quickCRUDQ.model.CommonBean;

public class GradeMajorManagerImpl extends BaseManagerImpl implements GradeMajorManager {
	private GradeMajorDao gradeMajorDao;

	public CommonBean createGradeMajor() {
		return gradeMajorDao.createGradeMajor();
	}

	/*
	 * public CommonBean findGradeMajors(String refid) { return
	 * gradeMajorDao.findGradeMajors(refid); }
	 */
	public CommonBean findGradeMajorById(String id) {
		return gradeMajorDao.findGradeMajorById(id);
	}

	public CommonBean findAllGradeMajors() {
		return gradeMajorDao.findAllGradeMajors();
	}

	public CommonBean findGraduateMajors(String year) {
		return gradeMajorDao.findGraduateMajors(year);
	}

	public CommonBean findDirectionMajors() {
		return gradeMajorDao.findDirectionMajors();
	}

	public CommonBean findSchoolClassMajors() {
		return gradeMajorDao.findSchoolClassMajors();
	}

	public void insertGradeMajor(CommonBean gradeMajorBean) {
		gradeMajorDao.insertGradeMajor(gradeMajorBean);
	}

	public GradeMajorDao getGradeMajorDao() {
		return gradeMajorDao;
	}

	public void setGradeMajorDao(GradeMajorDao gradeMajorDao) {
		this.gradeMajorDao = gradeMajorDao;
	}

}
